
.sidebar {
    width: 320px;
    position: fixed;
    top: 0;
    bottom: 60px;
    left: 0;
    z-index: 100; /* Behind the navbar */
    padding: 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    transition: all 0.3s;
}

.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 43px; /* Height of navbar */
    height: calc(100vh - 103px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
    .active {
        background-color: #EEE;
    }
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

.sidebar .nav-link .feather {
    margin-right: 4px;
    color: #999;
}

.sidebar .nav-link.active {
    color: #007bff;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
    color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

.sidebar-header {
    background-color: #333;
    line-height: 48px;
    color: #FFF;
    span {
        padding-left: 16px;
    }
}

.main {
    width: calc(100% - 320px);
}
.sidebar-toggle {
    display: none;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: inline-block;
    }
    .main {
        width: 100%;
    }
    .sidebar {
        margin-left: -320px;
    }
    .sidebar.toggled {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .sidebar-sticky {
        margin-top: 94px;
    }
}
